<!doctype html>
<html>
    <head>
        <meta charset="UTF-8" />
<!--
        <script src="http://jsconsole.com/remote.js?"></script>
        <script src="http://192.168.1.2:8080/target/target-script-min.js"></script>
-->
        <title>jQTouch &beta;</title>
        <style type="text/css" media="screen">@import "js/jqtouch/jqtouch.css";</style>
        <style type="text/css" media="screen">@import "js/themes/jqt/theme.css";</style>
        <style type="text/css" media="screen">@import "js/extensions/jqt.photo.css";</style>
        <script src="js/jqtouch/jquery-1.4.2.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jqtouch/jqtouch.js" type="application/x-javascript" charset="utf-8"></script>
        <script src="js/extensions/jqt.photo.js" type="application/x-javascript" charset="utf-8"></script>
         <script src="js/extensions/jqt.scroll.js" type="application/x-javascript" charset="utf-8"></script>
        <script type="text/javascript" charset="utf-8">
            var jQT = new $.jQTouch({
                icon: 'jqtouch.png',
                icon4: 'jqtouch4.png',
                addGlossToIcon: false,
                startupScreen: 'jqt_startup.png',
                statusBar: 'black',
                preloadImages: [
                    'js/themes/jqt/img/activeButton.png',
                    'js/themes/jqt/img/back_button.png',
                    'js/themes/jqt/img/back_button_clicked.png',
                    'js/themes/jqt/img/blueButton.png',
                    'js/themes/jqt/img/button.png',
                    'js/themes/jqt/img/button_clicked.png',
                    'js/themes/jqt/img/grayButton.png',
                    'js/themes/jqt/img/greenButton.png',
                    'js/themes/jqt/img/redButton.png',
                    'js/themes/jqt/img/whiteButton.png',
                    'js/themes/jqt/img/loading.gif'
                    ]
            });
			
			<?php 
			include ("sqlconnection.php");
			$db = new Database();
			$db->connect();
			$proid = $_REQUEST["pid"];
			
			$query = "select image_url from property_images where p_id = $proid";
			
			$result = mysql_query($query);
			
			print "$(document).ready(function(){ jQT.generateGallery('photo2', [";
			while($rows = mysql_fetch_array($result)){
			$image_url = $rows['image_url'];
				
				print "{src: '$image_url'},";
			}
			print "]);";
			print "$('#clickme2').click();";
			print "});";
		?>
        </script>
        <style type="text/css" media="screen">
            #jqt.fullscreen #home .info {
                display: none;
            }
            div#jqt #about {
                padding: 100px 10px 40px;
                text-shadow: rgba(255, 255, 255, 0.3) 0px -1px 0;
                font-size: 13px;
                text-align: center;
                background: #161618;
            }
            div#jqt #about p {
                margin-bottom: 8px;
            }
            div#jqt #about a {
                color: #fff;
                font-weight: bold;
                text-decoration: none;
            }
        </style>
    </head>
    <body><a id='clickme2' href="#photo2"></a>
       
    </body>
</html>